import request from '@/utils/request'

// 查询文献列表
export function listLiterature(query) {
  return request({
    url: '/literature/literature/list',
    method: 'get',
    params: query
  })
}

// 查询文献详细
export function getLiterature(literatureId) {
  return request({
    url: '/literature/literature/' + literatureId,
    method: 'get'
  })
}

// 新增文献
export function addLiterature(data) {
  return request({
    url: '/literature/literature',
    method: 'post',
    data: data
  })
}

// 修改文献
export function updateLiterature(data) {
  return request({
    url: '/literature/literature',
    method: 'put',
    data: data
  })
}

// 删除文献
export function delLiterature(literatureId) {
  return request({
    url: '/literature/literature/' + literatureId,
    method: 'delete'
  })
}
